package com.neusoft.neumooc.service.front;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.core.common.BaseService;
import com.neusoft.core.common.exception.ServiceException;
import com.neusoft.neumooc.dao.front.MenuDAO;
import com.neusoft.neumooc.vo.MenuVO;

/**
 * @ClassName: MenuServiceImpl
 * @Description: TODO 菜单逻辑处理类
 * @author huangruijin
 * @date 2016年8月16日
 */
@Service
@Transactional
public class MenuServiceImpl extends BaseService implements MenuService {

	/**
	 * @Fields menuDAO : TODO 菜单数据访问类
	 */
	@Autowired
	MenuDAO menuDAO;

	
	/**
	 * @Title: getParentMenuList
	 * @Description: TODO 获取一级导航列表
	 * @return 一级导航列表
	 * @throws ServiceException
	 */
	@Override
	public List<MenuVO> getOneMenuList() throws ServiceException {

		return menuDAO.getOneMenuList();
	}

	/**
	 * @Title: getParentMenuList
	 * @Description: TODO 获取一级导航列表
	 * @return 一级导航列表
	 * @throws ServiceException
	 */
	@Override
	public List<MenuVO> getTwoMenuList() throws ServiceException {

		return menuDAO.getTwoMenuList();
	}


}
